package com.cloudpolice.equipment.config;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.data.redis.core.StringRedisTemplate;
import tool.RedisAction;

/**
 * @author lianghao
 * @create 2019-12-17 18:34
 */
@Configuration
public class RedisConfig {
    @Autowired
    StringRedisTemplate stringRedisTemplate;

    @Bean
    public RedisAction getRedisAction(){
        RedisAction redisAction = new RedisAction();
        redisAction.setStringRedisTemplate(this.stringRedisTemplate);
        return redisAction;
    }
}
